<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary 
    x:Class="OpenLS.Chart.UI.PieSeriesPropertiesResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:drawing="http://schemas.Kherty.com/office/2007/drawing"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals">
    <ResourceDictionary.MergedDictionaries>
        <drawing:ColorResources/>
        <drawing:FillResources/>
        <drawing:LineResources/>
        <chartui:View3DResources/>
        <chartui:MarkerPropertiesResources />
    </ResourceDictionary.MergedDictionaries>
    <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <DataTemplate DataType="{x:Type chart:PieSeries}">
        <TabControl TabStripPlacement ="Left">
            <TabItem Header="{x:Static Internals:UIStringTable.SeriesOptions}">
                <GroupBox>
                    <StackPanel>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition MinWidth="100"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Label Content="{x:Static Internals:UIStringTable.NoRotation}"/>
                            <StackPanel Grid.Column="1">
                                <Slider Value="{Binding RelativeSource={RelativeSource Self}, Path=(chartui:ChartElement.Chart).FirstSliceAngle}" Maximum="360"/>
                                <TextBox Text="{Binding RelativeSource={RelativeSource Self}, Path=(chartui:ChartElement.Chart).FirstSliceAngle}"/>
                            </StackPanel>
                            <Label Content="{x:Static Internals:UIStringTable.FullRotation}" Grid.Column="2"/>
                        </Grid>
                    </StackPanel>
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.Fill}">
                <StackPanel>
                    <GroupBox DataContext="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}" >
                        <ContentControl Content="{Binding FillFormatter}" />
                    </GroupBox>
                    <CheckBox IsChecked="{Binding Path=(chartui:ChartElement.Chart).VaryColors, RelativeSource={RelativeSource Self}}" Content="{x:Static Internals:UIStringTable.VaryColorByPoint}"></CheckBox>
                </StackPanel>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.LineColor}">
                <GroupBox DataContext="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}" >
                    <ContentControl Content="{Binding LineFillFormatter}" />
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.LineStyle}">
                <GroupBox DataContext="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}" >
                    <ContentControl Content="{Binding LineStyleFormatter}" />
                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.Shadow}"/>
            <TabItem Header="{x:Static Internals:UIStringTable.Format3D}">
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ChartArea).View3D, RelativeSource={RelativeSource Self}}"/>
            </TabItem>
        </TabControl>

    </DataTemplate >


</ResourceDictionary>